<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('activity/sevenbrush/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('ACTIVITY_SEVENBRUSH_ID') ?>', name: 'id', width: 100, iskey: true, hide: true},
                        {display: '<?= translate('ACTIVITY_SEVENBRUSH_SUBID') ?>', name: 'subid', width: 100, process: formatSearch},
                        {display: '<?= translate('ACTIVITY_SEVENBRUSH_WEEK') ?>', name: 'week', width: 100, process: formatSearch},
                        {display: '<?= translate('ACTIVITY_SEVENBRUSH_TYPE') ?>', name: 'type', width: 100},
                        {display: '<?= translate('ACTIVITY_SEVENBRUSH_TYPEDESC') ?>', name: 'type_describe', width: 100},
                        {display: '<?= translate('ACTIVITY_SEVENBRUSH_VALUE') ?>', name: 'value', width: 100},
                        {display: '<?= translate('ACTIVITY_SEVENBRUSH_GIFTID') ?>', name: 'giftid', width: 200},
                        //{display: '<?= translate('ACTIVITY_SEVENBRUSH_SUBID') ?>', name: 'subid', width: 100, hide:true},
                        {display: '<?= translate('ACTIVITY_SEVENBRUSH_DESC') ?>', name: 'describe', width: 250},
                        {display: '<?= translate('ACTIVITY_SEVENBRUSH_DETAILDESC') ?>', name: 'describe_detail', width: 250},
                        {display: '<?= translate('MANAGE') ?>', name: 'id', width: 135, sortable: false, process: formatOp, toggle: false}
                    ],
                    buttons: [
                        {name: 'add', displayname: "<?= translate('ADD') ?>", title: "<?= translate('ADD') ?>", bclass: 'add', onpress: multi},
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        {separator: true}
                    ],
                    searchitems: true,
                }));
                SG.admin = $.extend(SG.admin, {
                    add_url: '<?= site_url("activity/sevenbrush/add") ?>',
                    edit_url: '<?= site_url("activity/sevenbrush/edit/") ?>',
                    del_url: '<?= site_url("activity/sevenbrush/del/") ?>',
                });
            });
        </script>
    </body>
</html>